import { validateNumberFixed2, validateNumberFixed } from '/@/utils/validators';
import request from '/@/api/project/order/index';
import commonRequest from '/@/api/common/common';

export default function (data: any) {
	const array = [
		{
			type: 'input',
			label: window.$t('bai8wgKJtJcE67J1Op9H'),
			key: 'projectNo',
			value: data.projectNo || '',
			disabledStyle: true,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},

		{
			type: 'input',
			label: window.$t('hpkM4DblGfRbqKg6o7Md'),
			key: 'projectName',
			value: data.projectName || '',
			disabledStyle: true,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},

		{
			type: 'input',
			label: window.$t('mfLkhMQo3xX9EohvMzx7'),
			key: 'projectSite',
			value: data.projectSite || '',
			disabledStyle: true,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
		{
			type: 'input',
			label: window.$t('ztUBeI3ecoEdkV6sZck'),
			key: window.$t('qwJrIsVjNg4suQdenjIP'),
			value: data.date || '',
			disabledStyle: true,
		},

		{
			type: 'input',
			label: window.$t('iNJwO2yfbWhu6WwzyfFa'),
			key: 'checkFlowName',
			value: data.sysOperation.name || '',
			disabledStyle: true,
		},

		{
			type: 'slot',
			slotName: 'contract',
			label: window.$t('vCgQwOj7bCs7SsdLEdweT'),
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},

		{
			type: 'slot',
			slotName: 'proProcess',
			key: 'progressPercentage',
			value: data.progressPercentage || 0,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},

		{
			type: 'slot',
			slotName: 'workHours',
			key: 'workHours',
			value: data.workHours || [
				{
					StaffID: '',
					StaffName: '',
					DutyHours: '',
					ExtraHours: '',
				},
			],
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
		{
			type: 'input',
			label: window.$t('tDz3E3h93T55Ndgr80un'),
			key: 'state',
			value:
				data.sysOperation.state == 1
					? window.$t('cY230XsKCgX1LyyoJa8Zx')
					: data.sysOperation.state == 2
					? window.$t('mHacJlZ7TwtywAtB51eHe')
					: data.sysOperation.state == 3
					? window.$t('ah3OMmLyaTnlW6GQuYbXj')
					: data.sysOperation.state == 4
					? window.$t('ah3OMmLyaTnlW6GQuYbXj')
					: window.$t('uFcc2AcUeIiR7bpvOI'),
			disabledStyle: true,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
		{
			type: 'textarea',
			label: window.$t('7AknbNyPotpsBjXytWxgJ'),
			key: 'descript',
			value: data.descript,
			disabledStyle: true,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
		{
			type: 'slot',
			slotName: 'tint1',
			label: window.$t('yvb4koXf48LxLvdgRnjq'),
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
		{
			type: 'slot',
			slotName: 'theset_QU',
			key: 'theset_QU',
			value: data.theset_QU ? data.theset_QU : '',
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('9wdp2GibRCiN6kKqEiI6o'),
			key: 'theset',
			value: data.theset || '',
			disabledStyle: true,

			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},
		{
			type: 'slot',
			slotName: 'materialComing_QU',
			key: 'materialComing_QU',
			value: data.materialComing_QU ? data.materialComing_QU : '',
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('zVrYaDkBgyZPntgyobl8'),
			key: 'materialComing',
			value: data.materialComing || '',
			disabledStyle: true,

			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},
		{
			type: 'slot',
			slotName: 'quality_QU',
			key: 'quality_QU',
			value: data.quality_QU ? data.quality_QU : '',
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('fIegQjG1sor5yoqKdoIe'),
			key: 'quality',
			value: data.quality || '',
			disabledStyle: true,

			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},

		{
			type: 'slot',
			slotName: 'progressStatus_QU',
			key: 'progressStatus_QU',
			value: data.progressStatus_QU ? data.progressStatus_QU : '',

			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('jeQqeGv01JnoVOq5e6H'),
			key: 'progressStatus',
			value: data.progressStatus || '',
			disabledStyle: true,

			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},
		{
			type: 'slot',
			slotName: 'security_QU',
			key: 'security_QU',
			value: data.security_QU ? data.security_QU : '',
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('zu9GsWxIzzozBnIJy'),
			key: 'security',
			value: data.security || '',
			disabledStyle: true,

			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},
		{
			type: 'slot',
			slotName: 'customerComplaints_QU',
			key: 'customerComplaints_QU',
			value: data.customerComplaints_QU ? data.customerComplaints_QU : '',
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('tqFn96g8y5hsqs5YgDhJ'),
			key: 'customerComplaints',
			value: data.customerComplaints || '',
			disabledStyle: true,
			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},
		{
			type: 'textarea',
			label: window.$t('usCpe569KRrXl4SndjyX'),
			key: 'description',
			value: data.description || '',
			disabledStyle: true,

			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
	];
	return array;
}
